package com.ruoyi.shop.service;

import java.util.List;
import com.ruoyi.shop.domain.ShopGoodsOrder;

/**
 * 订单Service接口
 * 
 * @author jiaodacailei
 * @date 2022-06-12
 */
public interface IShopGoodsOrderService 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public ShopGoodsOrder selectShopGoodsOrderById(Long id);

    /**
     * 查询订单列表
     * 
     * @param shopGoodsOrder 订单
     * @return 订单集合
     */
    public List<ShopGoodsOrder> selectShopGoodsOrderList(ShopGoodsOrder shopGoodsOrder);

    /**
     * 新增订单
     * 
     * @param shopGoodsOrder 订单
     * @return 结果
     */
    public int insertShopGoodsOrder(ShopGoodsOrder shopGoodsOrder);

    /**
     * 修改订单
     * 
     * @param shopGoodsOrder 订单
     * @return 结果
     */
    public int updateShopGoodsOrder(ShopGoodsOrder shopGoodsOrder);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteShopGoodsOrderByIds(Long[] ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteShopGoodsOrderById(Long id);

    void insertShopGoodsOrderByCart(List<Long> cartIds);
}
